/**
 * log4j 配置文件
 * appenders 配置输出源
 * catergor 配置标志，相当于name 
 * type 配置的类型 具体有 console file datetype
 * filename 文件名，包含文件路径
 * maxLogSize 文件大小 仅对 file有效
 * pattern 格式 仅对 时间有效
 * replaceconsole 是否替换系统的默认console输出
 * levels 输出等级
 *  
 */
var config = {
    "appenders":
        [
            {
                "type":"console",
                "category":"console"
            },
            {
                "category":"log_file",
                "type": "console",
                "filename": "logs/log_file/file.log",
                "maxLogSize": 104800,
                "backups": 100
            },
            {
                "category":"log_date",
                "type": "console",
                "filename": "./log_date/date",
                "alwaysIncludePattern": true,
                "pattern": "-yyyy-MM-dd-hh.log"
            }
        ],
    "replaceConsole": true,
    "levels":
    {
        "log_file":"ERROR",
        "console":"ALL",
        "log_date":"ALL"
    }
}
module.exports = config;